package com.wiken.storeservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wiken.servicecommon.common.PageUtill;
import com.wiken.storeservice.entity.Commodity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wiken.storeservice.entity.StoreCategories;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wiken
 * @since 2022-12-28
 */
public interface ICommodityService extends IService<Commodity> {
    boolean addCommodity(Commodity commodity, String token);

    boolean updateComodity(Commodity comodity, String token);

    Page getCommodityListByCategoryId(StoreCategories storeCategories, PageUtill pageUtill);

    Page getCommodityListByUserId(Page page, String token);
    boolean delCommodity(Commodity commodity, String token);
}
